package com.handpay.zztong.hp.accountcenter.model;

import android.os.Parcel;

import com.handpay.zztong.hp.bean.ResponseBean;

/**
 * @author sxshi on 2017/3/1.
 * @email:emotiona_xiaoshi@126.com
 * @describe:获取商户信息
 */

public class MerchInfo extends ResponseBean{
    private String phone;
    private String name;
    private String certNo;
    private String cardNum;

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCertNo() {
        return certNo;
    }

    public void setCertNo(String certNo) {
        this.certNo = certNo;
    }

    public String getCardNum() {
        return cardNum;
    }

    public void setCardNum(String cardNum) {
        this.cardNum = cardNum;
    }

    @Override
    public String toString() {
        return "MerchInfo{" +
                "phone='" + phone + '\'' +
                ", name='" + name + '\'' +
                ", certNo='" + certNo + '\'' +
                ", cardNum='" + cardNum + '\'' +
                '}';
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        super.writeToParcel(dest, flags);
        dest.writeString(this.phone);
        dest.writeString(this.name);
        dest.writeString(this.certNo);
        dest.writeString(this.cardNum);
    }

    public MerchInfo() {
    }

    protected MerchInfo(Parcel in) {
        super(in);
        this.phone = in.readString();
        this.name = in.readString();
        this.certNo = in.readString();
        this.cardNum = in.readString();
    }

    public static final Creator<MerchInfo> CREATOR = new Creator<MerchInfo>() {
        @Override
        public MerchInfo createFromParcel(Parcel source) {
            return new MerchInfo(source);
        }

        @Override
        public MerchInfo[] newArray(int size) {
            return new MerchInfo[size];
        }
    };
}
